package com.sl.springboot.service;

import com.sl.springboot.model.Ucard;
import com.sl.springboot.model.PageInfo;
import com.sl.springboot.model.UcardVO;

import java.util.*;

/**
 * 用户Service层接口
 * @author: mty
 */
public interface UcardService {

    //分页查询
    public PageInfo<Ucard> findPageInfo(Integer pageIndex, Integer pageSize, Map mp);

    //添加
    public int addUcard(Ucard ucard);

    //删除
    public int deleteUcard(String id);

    //修改
    public int updateUcard(Ucard ucard);

    //根据ID查询
    public Ucard findUcardById(String id);

    //查询所有
    public List<Ucard> getAll();

    //按照条件查询
    public List<Ucard> queryFilter(Map mp);

    public List<UcardVO> queryFilter1(Map mp);
}
